package web

import (
	"github.com/gin-gonic/gin"
	"ota-go/database"
)

type Api interface {
	CheckUserLoginState(c *gin.Context) (*database.User, error)
	Login(c *gin.Context)
	Logout(c *gin.Context)
	GetUserInfo(c *gin.Context)
	UpdateUserInfo(c *gin.Context)
	SubmitOtaUpdateInfo(c *gin.Context)
	DeleteOtaUpdateInfo(c *gin.Context)
	GetOtaUpdateInfo(c *gin.Context)
	GetOtaUpdateInfos(c *gin.Context)
	CheckOtaUpdate(c *gin.Context)
	UploadFile(c *gin.Context)
	GetAllUploadFiles(c *gin.Context)
}
